import 'package:wanxiang_app/generated/json/base/json_field.dart';
import 'package:wanxiang_app/generated/json/service_list_entity.g.dart';
import 'dart:convert';

@JsonSerializable()
class ServiceListEntity {
	late int code;
	late String msg;
	 List<ServiceListData> data=[];

	ServiceListEntity();

	factory ServiceListEntity.fromJson(Map<String, dynamic> json) => $ServiceListEntityFromJson(json);

	Map<String, dynamic> toJson() => $ServiceListEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class ServiceListData {
	@JSONField(name: "is_rest")
	late int isRest;
	late String nickname;
	late String photo;
	late String account;

	ServiceListData();

	factory ServiceListData.fromJson(Map<String, dynamic> json) => $ServiceListDataFromJson(json);

	Map<String, dynamic> toJson() => $ServiceListDataToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}